<?php
/**
 * Created by PhpStorm.
 * User: 快定
 * Date: 2022/3/22
 * Time: 17:53
 */
require "Apply.php";

use Apply\Apply;
use Apply\ChuZhu;
use Apply\ApplyChuZhu;


class Room implements Apply, ChuZhu
{
    public function dengJi()
    {
        // TODO: Implement dengJi() method.
        echo "房子登记" . PHP_EOL;
    }

    public function chuzu()
    {
        // TODO: Implement chuzu() method.
        echo "房子出租" . PHP_EOL;
    }
}

class Bus implements ApplyChuZhu
{
    public function dengJi()
    {
        // TODO: Implement dengJi() method.
        echo "Bus登记" . PHP_EOL;
    }

    public function chuzu()
    {
        // TODO: Implement chuzu() method.
        echo "Bus出租" . PHP_EOL;
    }
    
    public function print($name)
    {
        // TODO: Implement print() method.
        echo $name.PHP_EOL;
    }
}


$a = new Room();
$a->dengJi();
$a->chuzu();
$b = new Bus();
$b->dengJi();
$b->chuzu();
$b->print("123");